package org.dromara.tearoom.domain.bo;

import org.dromara.tearoom.domain.TerRechargeRules;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 充值规则业务对象 ter_recharge_rules
 *
 * @author xch
 * @date 2025-05-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TerRechargeRules.class, reverseConvertGenerate = false)
public class TerRechargeRulesBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 最小金额
     */
    private Integer minAmount;

    /**
     * 最大金额
     */
    private Integer maxAmount;

    /**
     * 优惠类型
     */
    private Integer rewardType;

    /**
     * 转换金额
     */
    private Integer rewardValue;

    /**
     * 生效开始时间
     */
    private Date startTime;

    /**
     * 生效结束时间
     */
    private Date endTime;

    private String delFlag;
}
